#include <iostream>
#include <cstring>

using namespace std;
int main()
{
    int errors = 0;
    const char *pc =  "a very long literal string";
    for (int ix = 0; ix< 10000000; ++ix)
    {
        int len = strlen(pc);
        char *pc2 = new char[len+1];
        strcpy(pc2, pc);
        if (strcmp(pc2, pc)) ++errors;
        delete []pc2;
    }
    cout<<"C-stype character strings:"<< errors<< "errors occurred.\n";
}
